home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / utils / desktop / neotrash.arc / TRASHCAN.DOC < prev    next >
Encoding:
Text File  |  1990-01-09  |  18.6 KB  |  391 lines

  1.                        NeoDesk Recoverable Trashcan
  2.  
  3.                                     by
  4.                                 Dan Wilga
  5.  
  6.          Copyright © 1990 Gribnif Software, All Rights Reserved.
  7.  
  8.      This item is "freeware".  There is no charge to use it.  It is the 
  9. property of Gribnif Software and may not be sold, traded, distributed, or 
  10. marketed by anyone else without the explicit written permission of Gribnif 
  11. Software.
  12.  
  13. Description
  14. -----------
  15.  
  16.      The NeoDesk Recoverable Trashcan is a special desk accessory which 
  17. hooks directly into NeoDesk 2.05 (or later).  It adds to NeoDesk a brand 
  18. new trashcan which can restore any files that were deleted through it.
  19.  
  20.      This "NeoDesk Accessory" is possible thanks to the new "NeoDesk 
  21. Developer's Kit" which lets you write your own new and exciting utilities 
  22. which can hook directly into NeoDesk.  It can be used to call many of the 
  23. NeoDesk functions directly from your own accessories.  Some additional 
  24. information about the "NeoDesk Developer's Kit" and "NeoDesk Accessories" 
  25. is available at the end of this file.
  26.  
  27. Files in this archive
  28. ---------------------
  29.  
  30.      This archive should include the following files.  If it does not you 
  31. are probably using a modified archive.  We recommend you delete it and 
  32. attempt to get one which is complete.
  33.  
  34.      1. TRASHCAN.ACC - The Recoverable Trashcan desk accessory.
  35.      2. TRASHCAN.RSC - The Recoverable Trashcan's resource file.
  36.      3. TRASHCAN.DOC - The documentation file you are reading now.
  37.      4. TRASHCAN.NIC - New icon for Recoverable Trashcan.
  38.      5. PATCH205.PRG - Program to patch earlier copies of NeoDesk 2.05.
  39.      6.  NEO_ACC.INF - File that tells NeoDesk what "NeoDesk Accessories" 
  40.                        you are running.
  41.  
  42. Requirements
  43. ------------
  44.  
  45.      To use the Recoverable Trashcan you need NeoDesk 2.05 (or later).  
  46. You can see what version you are running by looking under the "About 
  47. NeoDesk..." menu entry.  If you are running a version older than 2.05 then 
  48. you will have to upgrade for the Recoverable Trashcan to work.  You can 
  49. find more information on upgrading below.
  50.  
  51. Patching NeoDesk
  52. ----------------
  53.  
  54.      Some earlier copies of NeoDesk 2.05 are only able to utilize one 
  55. "NeoDesk Accessory" at a time.  This can easily be fixed by running the 
  56. included patch program.  The patch program will not affect copies of 
  57. NeoDesk that have already been patched (and thus were fine to start with).  
  58. Just follow these simple instructions:
  59.  
  60.      1. Make a backup of NeoDesk (just in case something goes wrong).
  61.      2. Run the PATCH205.PRG that was included with this archive.
  62.      3. Follow the on-screen instructions.
  63.  
  64.      Technical types might be interested in knowing that the patch simply 
  65. consist of changing the data in the NEODESK.EXE file at offset 421E from 
  66. "0C46 000A 6C0E" to "5246 4E71 4E71", something that you can easily do 
  67. with our freeware MEMFILE editor accessory.
  68.  
  69. Installing it
  70. -------------
  71.  
  72.      To install the Recoverable Trashcan accessory copy the TRASHCAN.ACC 
  73. and TRASHCAN.RSC files to your boot disk.  A boot disk is whatever disk 
  74. you normally utilize to turn on your computer.  This could be a hard disk 
  75. or a floppy disk.  Consult your NeoDesk manual if you have any questions.
  76.  
  77.      You must also copy the included NEO_ACC.INF file to the same 
  78. directory where you store NeoDesk.  This file tells NeoDesk the filename 
  79. of any "NeoDesk Accessories" which you might be running, in this case the 
  80. Recoverable Trashcan.  If you already have a NEO_ACC.INF file then you 
  81. should edit it so that it has the trashcan accessory in it.  The 
  82. NEO_ACC.INF file stores a list of all the "NeoDesk Accessories" that 
  83. NeoDesk should look for.
  84.  
  85.      Once you have installed both the Recoverable Trashcan accessory and 
  86. the NEO_ACC.INF file you can then reboot your system and load NeoDesk.  
  87. Once loaded you can open a window to your boot disk and drag the 
  88. TRASHCAN.ACC file to your desktop.  Make sure you place it in a convenient 
  89. place on the desktop, since the icon for the Recoverable Trashcan 
  90. accessory will now become your new trashcan.  You should also make sure 
  91. you "Save Desktop" so that the icon will remain there every time you 
  92. reboot the system.
  93.  
  94. Custom Icon
  95. -----------
  96.  
  97.      Now you have to give the trashcan a new custom icon (so that it will 
  98. look like a trashcan and not like a desk accessory).  You can either edit 
  99. your own or use the one we have included.
  100.  
  101.      If you edit your own you must remember that the custom icons in the 
  102. icon editor are processed from left to right, top to bottom.  What this 
  103. means is that if you want to create a custom icon for TRASHCAN.ACC you 
  104. must make sure that you place it before the "*.ACC" icon that is already 
  105. in there or your new TRASHCAN.ACC icon will be ignored.  You can insert a 
  106. new icon by dragging the "New Icon" icon and releasing it over any of the
  107. icons inside the icon editor windows.
  108.  
  109.      If you wish to use the icon that we have included you must make sure 
  110. that you first create a new icon (before the "*.ACC" icon).  Then load the 
  111. TRASHCAN.ACC icon from the enclosed TRASHCAN.NIC file.  You can then copy 
  112. the loaded icon to the new icon you created.  Make sure you delete the one 
  113. you loaded after you have copied it to the one you created.
  114.  
  115. Operation
  116. ---------
  117.  
  118.      Use the Recoverable Trashcan just like the older standard trashcan.  
  119. Any items (files or folders) you drag to it will be deleted from your 
  120. windows.  It works on hard disks, ram disks, and floppy disks.  The big 
  121. difference is that these deleted items will still be available "inside" 
  122. the trashcan.  You can access the trashcan contents by double-clicking on 
  123. the trashcan or opening its desk accessory entry under the "NeoDesk" menu.
  124.  
  125.      You may also choose to remove the older trashcan (so you will not get 
  126. confused and delete something in the wrong trashcan) by selecting it and 
  127. choosing the "Remove" option under the "Install Desktop Icon..." menu 
  128. entry.
  129.  
  130.      You CANNOT use this new trashcan to 'remove' desktop icons from your 
  131. desktop.  That is still a feature of the original trashcan.  The 
  132. Recoverable Trashcan will attempt to delete the actual item associated with
  133. any icon you drag to it, regardless of whether it is a desktop icon or not.
  134. You can still select any icon from the desktop and remove it using the
  135. "Install Desktop Icon..." menu entry.
  136.  
  137.      The contents of the trashcan are displayed in a special dialog box.  
  138. The drive buttons to the right indicate what drive you are presently 
  139. looking looking at.  The scroll area to the left will list any deleted 
  140. items (files or folders) in that drive which can be recovered with the 
  141. Recoverable Trashcan.  These items are sorted alphabetically by path and 
  142. name.  Folders will be indicated by the standard "folder character" to the 
  143. left of any folder names.
  144.  
  145.      If there are more items than fit in the scroll area you can use the 
  146. arrows in the vertical scroll bar to see them.  In theory the Recoverable 
  147. Trashcan can handle an unlimited number of deleted items per drive.  The 
  148. horizontal scroll bar lets you read any filenames which (due to their long 
  149. path) are too long to fit in the scroll area.
  150.  
  151.      By clicking on the appropriate "d", "t", or "s" button you can change 
  152. the display to the right of an item's name to show that item's date, time,
  153. or size.
  154.  
  155.      If any items are displayed with a "gray field" over the filename that 
  156. signifies that the items' paths no longer exist.  That means that when you 
  157. restore them, you will have to create the folders that they require.  In
  158. color, this "gray field" is displayed with as a "red field".
  159.  
  160.      There is also an option, to the right, to turn on or off the 
  161. confirmation the trashcan gives every time you drag something to it.  This 
  162. option is permanently saved in the TRASHCAN.RSC file whenever you change 
  163. it and then quit out of the trashcan.
  164.  
  165.      You can select any item or group of items by using the mouse.  Any 
  166. item you select will remain selected even if you scroll the list.  You can 
  167. use the [Shift] key to add and remove single items from a group of items.  
  168. Selecting any item will turn on the two buttons at the lower part of the 
  169. dialog box, [Undelete] and [Delete Permanently].
  170.  
  171.      The first option, Undelete, allows you to recover all the items that 
  172. you have selected.  An item is restored to the same drive and folder as 
  173. where it was deleted from.  If there already is an item with the same name 
  174. as the deleted item you will receive a name conflict box.  At this point 
  175. you can either rename the file, skip that file, or abort the entire 
  176. operation.  There is also the possibility that the path of the deleted 
  177. item no longer exists.  In this case the trashcan will give you the option 
  178. to create the folders needed to recover that item (or you can just abort 
  179. recovering it).
  180.  
  181.      The second option, Delete Permanently, allows you to delete all the 
  182. items you have selected from the Recoverable Trashcan.  This is similar to 
  183. using the older standard trashcan.  Since you will be unable to recover 
  184. any items deleted with this option, use it with care.  Using this command 
  185. will also return any disk space that was used by deleted items.
  186.  
  187. Usage
  188. -----
  189.  
  190.      You should try to always make it a habit of deleting your files & 
  191. folders through the Recoverable Trashcan.  That way there is less of a 
  192. chance that you will accidentally delete an item that you did not mean to 
  193. delete.
  194.  
  195.      It is important to remember that deleted items (which are in the 
  196. Recoverable Trashcan) will still consume valuable disk space.  You should 
  197. check the trashcan at least once a week and delete any items that you are 
  198. not planning to recover.  If you run out of disk space you should probably 
  199. consider emptying out the trashcan.
  200.  
  201.      You might even find it convenient to remove the built-in NeoDesk
  202. trashcan from the desktop so that you do not get confused and delete 
  203. something important by accident. 
  204.  
  205.      Remember that if you delete permanently a folder full of files
  206. NeoDesk still has to delete every individual file inside of it one by one.
  207. This means that very large folders might take some extra time to delete.
  208. The folder name will remain displayed in the Recoverable Trashcan while it
  209. is busy deleting all of its contents.
  210.  
  211.     The Recoverable Trashcan will temporarily delete any read-only files
  212. without any additional warning.  When you select "Delete Permanently" it
  213. will then ask for confirmation before removing any read-only files
  214. permanently.
  215.  
  216. How it works
  217. ------------
  218.  
  219.      Whenever you delete a file or folder the Recoverable Trashcan deletes 
  220. that item's name from the "file directory" leaving all of its sectors 
  221. marked as "in use" so that no other file will overwrite it.  It then 
  222. writes to a hidden TRASHCAN.DAT file, in the root directory of that disk, 
  223. all the information needed to later recover that "deleted" item.  The 
  224. TRASHCAN.DAT file holds all the information for all the deleted items in 
  225. that particular drive.  If you delete or recover the last item in the 
  226. trashcan for that drive, the TRASHCAN.DAT file is removed.
  227.  
  228.      By looking for a TRASHCAN.DAT file in any disk, the trashcan is able 
  229. to tell if any items have been deleted in that disk (and are waiting to be 
  230. recovered).  With the data in that file it can then "undelete" any deleted 
  231. items.  If there are no deleted items in a drive (waiting to be restored) 
  232. then there will be no TRASHCAN.DAT for that drive.
  233.  
  234.      To delete an item permanently it actually restores the item first 
  235. and then erases it from the disk.  The restore stage is needed to insure 
  236. that everything is back to normal before it is actually deleted.  This 
  237. method also assures that the Recoverable Trashcan never has to touch the 
  238. very sensitive File Allocation Table (FAT).
  239.  
  240. Warning!
  241. --------
  242.  
  243.      You should never attempt to reorganize or repair a drive using 
  244. programs like TuneUp, DL_II, or ICD CleanUp when you have files in the
  245. Recoverable Trashcan!  These programs will interpret any deleted files,
  246. that are still inside the trashcan, as "lost clusters".  If you go ahead
  247. and reorganize a disk with one of these programs or "fix" the lost clusters,
  248. any deleted items (waiting to be recovered) will be lost or damaged.  Also
  249. the information in the TRASHCAN.DAT file, for that drive, will no longer be
  250. accurate.  Only use programs like TuneUp, DL_II, or ICD CleanUp after you
  251. have emptied out the Recoverable Trashcan.
  252.  
  253.      Because all the information for the deleted items of a disk is stored 
  254. in a hidden TRASHCAN.DAT file you have to be careful that you do not copy 
  255. that file to another drive.  For example, the NeoDesk DiskCopy function 
  256. will copy the TRASHCAN.DAT if you use the "Files Only" function.  The same
  257. effect is caused by dragging a disk icon to any open window.  If you 
  258. do so, the Recoverable Trashcan information for that disk (the one it was 
  259. copied to) will be inaccurate.
  260.  
  261.      You can, however, perform disk copies as long as you use the "With 
  262. Format" or "No Format" options.  In either case the TRASHCAN.DAT along 
  263. with all the deleted items will be copied.  This is because those commands 
  264. make exact duplicates of the disk (an "image" copy), including all of its 
  265. contents.
  266.  
  267.      Under the worst case scenario you will only lose the deleted items 
  268. inside the trashcan.  You can always restore a drive back to its correct 
  269. state (if for some reason the Recoverable Trashcan is not working 
  270. correctly) by using a utility like TuneUp or DL_II to restore the "lost 
  271. clusters" and by deleting the hidden TRASHCAN.DAT file.
  272.  
  273. TOS bug information
  274. -------------------
  275.  
  276.      Because the Recoverable Trashcan requires that a "media change" be 
  277. executed so that NeoDesk & TOS both realize that files have been deleted 
  278. or recovered, there is the possibility that you may run into a nasty TOS 
  279. 1.0/1.2 bug.
  280.  
  281.      The bug occurs when special circumstances in a drive's file structure 
  282. cause the system to crash whenever a media change is executed.  NeoDesk 
  283. 2.05 will execute a media change whenever you press [Esc] on any drive's 
  284. window.  Thus, you can see if any of your drives have this problem by 
  285. pressing [Esc] from NeoDesk 2.05 on each drive's window.  This problem can 
  286. also be caused if there are more than 98 folders in any directory.
  287.  
  288.      You cannot use the Recoverable Trashcan on any drives showing this 
  289. symptom.  If you do, the Recoverable Trashcan will attempt to detect this 
  290. and tell you, though there is a chance that it might crash.  In either 
  291. case nothing will happen to any of your files.
  292.  
  293.      This bug is related to the "40 Folder Bug" and is NOT fixed by 
  294. FOLDRXXX or any other 40 folder fix.  This problem was corrected in TOS 
  295. 1.4 (and newer ROM versions).
  296.  
  297.      You can try to change "the special circumstances" of that drive by 
  298. rearranging the folders in the root directory.  There are no real 
  299. guidelines for this, it is simply a matter of testing.  We found that 
  300. moving the first folder in a drive to another drive, placing some odd file 
  301. in that drive, and then moving back the folder will usually change the
  302. drive structure enough to fix the problem.  (By placing some odd file back
  303. on the disk before you move the folder back to it makes sure the folder
  304. does not end up in the same directory entry).
  305.  
  306. Disclaimer
  307. ----------
  308.  
  309.      As you would expect with software of this nature, we make no 
  310. warranties concerning the ability of this accessory to recover deleted 
  311. items or to perform as claimed.  The software is provided "as is" and you 
  312. should only use it at your own risk.  We cannot be responsible of any loss 
  313. of data that results from the usage of this accessory.
  314.  
  315. Upgrading NeoDesk
  316. -----------------
  317.  
  318.      If you are running a copy of NeoDesk which is older than version 2.05 
  319. you will have to upgrade to be able to use any of the "NeoDesk Accessories".
  320.  
  321.      You can upgrade to version 2.05 (the present shipping version as of 
  322. the time this document was written) by:
  323.  
  324.      1. Sending back your original INSTALLED NeoDesk 2.0 disk.
  325.      2. Enclosing $5(US) to pay for duplication, postage, and handling.
  326.           (European customers should include an additional $3 to 
  327.            cover additional shipping costs.)
  328.  
  329.      Future version may have slightly different upgrade policies.  If you 
  330. are not sure, call first.
  331.  
  332. NeoDesk Developer's Kit
  333. -----------------------
  334.  
  335.      The "NeoDesk Developer's Kit" is a complete instruction guide which 
  336. will allow you to develop your own desk accessories which directly hook up 
  337. with NeoDesk 2.05 (or later).  This allows you to write new features and 
  338. utilities for NeoDesk or to use many of the NeoDesk functions in your own 
  339. accessories.  Both the NeoDesk Recoverable Trashcan and the NeoDesk CLI 
  340. were written using this developer's kit.
  341.  
  342.      Knowledge of desk accessory programming, the 'C' language, and 
  343. pointers is required.  The kit can easily be converted to work with any 
  344. higher level language.  It includes sample source code, header files, 
  345. complete documentation, and sample accessories.  
  346.  
  347.      This item is planned for commercial release in early 1990 and 
  348. requires NeoDesk 2.05 or later.
  349.  
  350. NeoDesk CLI
  351. -----------
  352.  
  353.      The NeoDesk CLI is a complete command line interpreter accessory 
  354. which works out a GEM window.  Includes both MS-DOS and UNIX style 
  355. commands and allows for the easy creation of batch files, interactive 
  356. menus, and more.
  357.  
  358.      By hooking directly into NeoDesk it is able to keep a relatively 
  359. small file size (since it calls many of NeoDesk's functions directly) and 
  360. it also gains certain advantages over any other CLI.  Among those are the 
  361. ability to execute any program directly from a desk accessory.
  362.  
  363.      This item is planned for commercial release in early 1990 and 
  364. requires NeoDesk 2.05 or later.
  365.  
  366. Extra information
  367. -----------------
  368.  
  369.      If you have downloaded this and do not own NeoDesk you can purchase 
  370. it directly from us.  NeoDesk is a complete replacement to the built-in 
  371. GEM desktop which comes with the Atari ST.  Unlike other programs which 
  372. simply give you one or two features, NeoDesk has hundreds of new exciting 
  373. features and comes with a complete 90+ page manual.  Contact us for a 
  374. flyer or more information.
  375.  
  376.      If you have any other questions or comments, please feel free to 
  377. write or call.  You may contact us at:
  378.  
  379.      Gribnif Software
  380.      P.O. Box 350
  381.      Hadley, MA  01035
  382.      
  383.      Main line: (413) 584-7887
  384.      Fax:       (413) 584-2565
  385.      Order line:(800) 999-GRIB <- Orders only!  No technical support.
  386.  
  387.      Technical support for the Recoverable Trashcan is only available to
  388. registered users of NeoDesk 2.0 - The Desktop Alternative (version 2.05
  389. or later).
  390.  
  391.